﻿<Window x:Class="CapstoneProjectAEReader.GUIs.TranslationGUI.BookmarkHeader"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="BookmarkHeader" Height="150" Width="400" ResizeMode="NoResize" 
        Icon="pack://application:,,,/AEIcon.ico">
    <Window.CommandBindings>
        <CommandBinding Command="ApplicationCommands.Close"
                        Executed="CloseCommandHandler"/>
    </Window.CommandBindings>
    <Grid>
        <Grid.Background>
            <LinearGradientBrush StartPoint="0,0.5" EndPoint="1,0.5">
                <GradientStop Color="AliceBlue" Offset="0" />
                <GradientStop Color="WhiteSmoke" Offset="0.5" />
                <GradientStop Color="AliceBlue" Offset="1" />
            </LinearGradientBrush>
        </Grid.Background>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="auto"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <TextBox x:Name="tbHeader" TextWrapping="Wrap" Grid.Row="0" Grid.ColumnSpan="2" Margin="10" 
                 VerticalScrollBarVisibility="Visible" BorderBrush="MediumPurple"/>
        <StackPanel Orientation="Horizontal" Grid.Column="0" Grid.Row="1" Margin="10,0,0,0">
            <TextBox x:Name="txtPageNo" VerticalAlignment="Center" Width="36" Height="24" 
                     MaxLines="1" MaxLength="4" HorizontalAlignment="Center"/>
        </StackPanel>
        <StackPanel Orientation="Horizontal" Grid.Column="2" Grid.Row="1" HorizontalAlignment="Right" Margin="0,0,6,0">
            <Button x:Name="btOk" Background="Transparent" BorderThickness="0" Margin="4" Click="BtOkClick">
                <Grid>
                    <Image Source="Images/translateButton.png" Height="20"/>
                    <Label Content="OK" HorizontalAlignment="Center"/>
                </Grid>
            </Button>
            <Button x:Name="btCancel" Background="Transparent" BorderThickness="0" Margin="4" Command="ApplicationCommands.Close" >
                <Grid>
                    <Image Source="Images/translateButton.png" Height="20"/>
                    <Label Content="Cancel" HorizontalAlignment="Center"/>
                </Grid>
            </Button>
        </StackPanel>
    </Grid>
</Window>
